package com.ruoyi.safe.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.CommonEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 话题管理对象 t_topic
 *
 * @author ruoyi
 * @date 2025-03-31
 */
@Setter
@Getter
@TableName("t_topic")
public class TTopic extends CommonEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 话题id
     */
    private Long id;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private Integer delFlag;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 帖子数
     */
    @Excel(name = "帖子数")
    private Long postCount;

    /**
     * 热度
     */
    @Excel(name = "热度")
    private Long heatDeg;

    /**
     * 话题背景
     */
    @Excel(name = "话题背景")
    private String homeBackground;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("title", getTitle())
                .append("postCount", getPostCount())
                .append("heatDeg", getHeatDeg())
                .append("homeBackground", getHomeBackground())
                .toString();
    }
}
